package com.zhu.blog.dao;


import com.zhu.blog.model.Message;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface MessageRepository extends JpaRepository<Message,Long>, JpaSpecificationExecutor<Message> {
    List<Message> findByParentMessageNull();
}
